<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Gmap
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>
<?php if ($this->paginator->getTotalItemCount()): ?>
	<ul class="gmaps_sponsored">
	  <?php foreach( $this->paginator as $item ): ?>
	    <li>
        <?php if ($this->show_photo && $item->photo_id): ?>
          <div class="gmap_photo">
            <?php echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'thumb.normal')) ?>
          </div>   
        <?php endif; ?> 
        <div class="gmap_info">   
		      <div class="gmap_title">
		        <?php echo $this->htmlLink($item->getHref(), $this->radcodes()->text()->truncate($item->getTitle(), $this->titlelength)); ?>
		      </div> 
	        <?php if ($this->show_details): ?>
	          <div class="gmap_meta">
	            <?php echo $this->timestamp($item->creation_date) ?>
              <?php echo $this->translate('by %s', $item->getOwner()->__toString()); ?>
	          </div>
	        <?php endif; ?>
        </div>       
	    </li>
	  <?php endforeach; ?>
	</ul>
<?php endif; ?>